package com.qf.service.impl;

import com.qf.entity.MallGoodsCatEntity;
import com.qf.mapper.CatMapper;
import com.qf.service.ICatService;
import com.qf.views.ViewCatTplEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class CatService implements ICatService {
    @Autowired
    private CatMapper mapper;
    @Override
    public List<ViewCatTplEntity> findById(String pid) {
        return mapper.findById(pid);
    }

    @Override
    public List<ViewCatTplEntity> findAll() {
        return mapper.findAll();
    }

    @Override
    public int update(MallGoodsCatEntity entity) {
        return mapper.update(entity);
    }

    @Override
    public int add(MallGoodsCatEntity entity) {
        return mapper.add(entity);
    }
}
